package com.zingrow.web.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zingrow.web.user.mapper.AppupdateMapper;
import com.zingrow.web.user.model.Appupdate;
import com.zingrow.web.user.service.IAppupdateService;

@Service
public class AppupdateService implements IAppupdateService{

	@Autowired
	private AppupdateMapper appupdatesMapper;

	@Override
	public boolean inappupdate(String edition,String title,String whetherforce,String whetherdata)
	{
		Appupdate s=new Appupdate();
		s.setAppupdate_edition(edition);
		s.setAppupdate_title(title);
		s.setAppupdate_whetherdata(Integer.parseInt(whetherdata));
		s.setAppupdate_whetherforce(Integer.parseInt(whetherforce));
		return appupdatesMapper.inappupdate(s)>0;
	};
	@Override
	public Appupdate outappupdate()
	{
		return appupdatesMapper.outappupdate();
	};
}
